package  
{

	/**
	 * Simple conversations between different units
	 * 
	 * @author aM
	 */
	public class TimeConversation 
	{
		static public function numSamplesToPosition( numSignals: int, bpm: Number ): Number
		{
			return numSignals * ( bpm * 9.448223733938e-8 );
		}

		static public function positionToNumSamples( position: Number, bpm: Number ): int
		{
			return ( position * 10584000.0 ) / bpm;
		}
	}
}